import 'package:ruitmentapp/personnel/zj_tabbar_two_list_detail_page.dart';
import 'package:flutter/material.dart';
import 'package:ruitmentapp/main/tabbar/zj_tabbar_controller.dart';

class ZJRouter {
  static const String initialRoute = ZJTabbarController.routeName;

  static final Map<String, WidgetBuilder> routes = {
    ZJTabbarTwoListDetailPageScreen.routeName: (ctx) => ZJTabbarTwoListDetailPageScreen(),

  };

  // 自己扩展
  // static final RouteFactory generateRoute = (settings) {
  //   if (settings.name == ZJFilterScreen.routeName) {
  //     return MaterialPageRoute(
  //         builder: (ctx) {
  //           return ZJFilterScreen();
  //         },
  //         fullscreenDialog: true
  //     );
  //   }

  //   return null;
  // };

  static final RouteFactory unknownRoute = (settings) {
    return null;
  };
}